package com.kelp.codetoolkit.enums

/**
 * @author: liuyuebai
 * @date: 2025/1/14 20:11
 * @description:
 */
enum class XMLSQLMethodTemplateEnum(val typeName: String,val typeDescription: String) {

    SELECT("select", "查询"),
    UPDATE("update","修改"),
    DELETE("delete","删除")
    ;

    companion object {
        fun fromType(type: String): XMLSQLMethodTemplateEnum? {
            return values().find { it.typeName == type}
        }

        fun  isSelect(type: String): Boolean {
            return SELECT.typeName == type
        }
    }
}